﻿@{
    int page = ViewBag.PageIndex;
    int dept = ViewBag.DepartId;
    string kw = ViewBag.Keyword;
    int i = 0;
}
@model AdminUsers
<div class="content-box">
    <div class="content-box-header">
        <h3 style="cursor: s-resize;">管理员管理</h3>
        <ul class="content-box-tabs">
            <li><a href="javascript:;" class="default-tab current" id="List">列表</a></li>
            <li><a href="@Url.DomainRouteUrl(AreasConfig.Admin, new {action = "Edit", controller = "AdminUser",md="add",page=1,dept=0})">表单</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <div class="">
                <form action="@Url.DomainRouteUrl(AreasConfig.Admin,"Index","AdminUser")">
                    <select name="depart" class="">
                        <option value="1">--选择部门--</option>
                        <option value="2">Option 2</option>
                        <option value="3">Option 3</option>
                        <option value="4">Option 4</option>
                    </select>
                    <input type="text" name="kw" value="" class="text-input" placeholder="按登录名，姓名，手机号搜索" />
                    <button type="submit" value="">搜索</button>
                </form>
            </div>
            <table>
                <thead>
                <tr>
                    <th>
                        <input class="check-all" type="checkbox">
                    </th>
                    <th>姓名</th>
                    <th>用户名</th>
                    <th>部门</th>
                    <th>手机号</th>
                    <th>邮箱</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach (var item in Model.Items)
                {
                    i++;
                    <tr class="@(i % 2 == 0 ? "" : "alt-row")">
                        <td>
                            <input type="checkbox">
                        </td>
                        <td>@item.AdminUseTrueName</td>
                        <td>@item.AdminUserName</td>
                        <td>@item.AdminUserDepart</td>
                        <td>@item.AdminUsePhone</td>
                        <td>@item.AdminUseEmail</td>
                        <td>
                            @Html.ActionLink("修改", "Edit", new { id = item.AdminUserId,md="update",page = page, kw = kw, dept = dept })
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            @Html.ActionLink("删除", "Delete", new {id=item.AdminUserId,page=page,kw=kw,dept=dept},new{onclick="return confirm('确定要删除吗？');"})
                        </td>
                    </tr>
                }
                </tbody>
            </table>
        </div>
    </div>
</div>
